<?php

namespace app\common\enums;

class TrainerSalaryProjectEnum extends BaseEnum
{
    // 定义常量
    public const BASIC = '1';
    public const C_30 = '2';
    public const C_60 = '3';
    public const EXPERIENCE = '4';
    public const ANTI_FORGETTING = '5';

    // 定义描述
    public array $description = [
        self::BASIC => '基本工资',
        self::C_30 => '30分钟课',
        self::C_60 => '60分钟课',
        self::EXPERIENCE => '体验课',
        self::ANTI_FORGETTING => '抗遗忘'
    ];


    public function get($courseFullType)
    {
        switch ($courseFullType) {
            case self::C_30:
                return self::C_30;
            case self::C_60:
                return self::C_60;
            case self::EXPERIENCE:
                return self::EXPERIENCE;
        }
        return null;
    }

}
